﻿using Abp.Application.Services;
using Abp.Application.Services.Dto;
using FutureApp.Shop.Dto;
using System;
using System.Threading.Tasks;

namespace FutureApp.Shop
{
    /// <summary>
    /// 商品品牌应用服务
    /// </summary>
    public interface IGoodsBrandTestAppService : IApplicationService
    {
        /// <summary>
        /// 获取商品品牌列表
        /// </summary>
        /// <returns>返回商品品牌列表</returns>
        Task<ListResultDto<GoodsBrandEntityDto>> GetGoodsBrandList();

        /// <summary>
        /// 获取商品品牌
        /// </summary>
        /// <param name="id">商品品牌Id</param>
        /// <returns>返回商品品牌</returns>
        Task<GoodsBrandEntityDto> GetGoodsBrand(Guid id);

        /// <summary>
        /// 获取商品品牌
        /// </summary>
        /// <param name="name">商品品牌名称</param>
        /// <returns>返回商品品牌</returns>
        Task<GoodsBrandEntityDto> GetGoodsBrand(string name);

        /// <summary>
        /// 是否存在商品品牌
        /// </summary>
        /// <param name="id">商品品牌Id</param>
        /// <returns>存在返回<c>true</c>，不存在返回<c>false</c></returns>
        Task<bool> ExistGoodsBrand(Guid id);

        /// <summary>
        /// 是否存在商品品牌
        /// </summary>
        /// <param name="name">商品品牌名称</param>
        /// <returns>存在返回<c>true</c>，不存在返回<c>false</c></returns>
        Task<bool> ExistGoodsBrand(string name);

        /// <summary>
        /// 创建商品品牌
        /// </summary>
        /// <param name="input">参数</param>
        Task CreateGoodsBrand(CreateGoodsBrandInput input);

        /// <summary>
        /// 启用商品品牌
        /// </summary>
        /// <param name="id">商品品牌Id</param>
        Task EnableGoodsBrand(Guid id);

        /// <summary>
        /// 禁用商品品牌
        /// </summary>
        /// <param name="id">商品品牌Id</param>
        Task DisableGoodsBrand(Guid id);

        /// <summary>
        /// 删除商品品牌
        /// </summary>
        /// <param name="id">商品品牌Id</param>
        Task DeleteGoodsBrand(Guid id);
    }
}
